<?php	
/*\
 *
 *
 *
 *
 *
\*/

// Interface function	
function oh_function_adminer($tokens) {		
	global $oh_object_adminer;
	/*oh.framework/modules/adminer/adminer-mod.php?server=localhost&db=users_fbianco1*/
	$url = oh("url.framework.modules.adminer");
	$url = "http://localhost/oh-php-framework/8/oh.framework/modules/adminer";
	echo oh_debug_div_open();	
	echo "Adminer<br/>";
	echo '<iframe src="';
	echo $url.'/autologin.php?';
	//echo 'host='.oh("config.db.host")."&";
	//echo 'username='.oh("config.db.username")."&";
	//echo 'password='.oh("config.db.password")."&";
	//echo 'db='.oh("config.db.name")."&";
	echo '" ';
	echo 'width="100%" ';
	echo 'height="600px" ';
	echo 'frameborder="no" ';
	echo '>';
	echo '</iframe>';
	echo oh_debug_div_close();	
	return $oh_object_adminer;
} 

// Option file required
//require_once($oh['path']."/modules/adminer/adminer-mod.php");

// Main class of module
class oh_class_adminer {		
	function oh_class_adminer() {}
}

// Main object of module
global $oh_object_adminer;
$oh_object_adminer = new oh_class_adminer();
